package  gearunits.models{
	import away3d.core.base.Face;
	import away3d.core.base.Mesh;
	import away3d.core.base.UV;
	import away3d.core.base.Vertex;
	import away3d.core.utils.Init;

	public class AMeshStoreshopCashier extends Mesh {
		private var ve:Array;
		private var fa:Array;

		public function AMeshStoreshopCashier(init:Object = null) {
			super( init );
			init = Init.parse(init);
			ve = [];
			v(32.000000,0.000000,-31.999998);
			v(-32.000000,0.000000,-32.000004);
			v(-31.999996,0.000000,31.999998);
			v(32.000008,0.000000,31.999990);
			v(31.999985,24.000000,-32.000008);
			v(-32.000015,24.000000,-31.999981);
			v(-31.999990,24.000000,32.000008);
			v(31.999998,24.000000,32.000000);
			v(31.999998,74.000000,32.000000);
			v(-31.999990,74.000000,32.000008);
			v(-32.000019,74.000000,18.000019);
			v(31.999981,74.000000,17.999987);

			f(3,7,4,0.340657,0.277224,0.430568,0.187313,0.670329,0.427074,1.000000,-0.000000,0.000000);
			f(4,0,3,0.670329,0.427074,0.580418,0.516985,0.340657,0.277224,1.000000,-0.000000,0.000001);
			f(2,6,7,0.340657,0.909036,0.341048,0.781884,0.680119,0.782925,0.000000,1.000000,-0.000000);
			f(2,7,3,0.340657,0.909036,0.680119,0.782925,0.679729,0.910076,0.000000,1.000000,-0.000000);
			f(1,5,2,0.910090,0.000000,1.000000,0.089910,0.670329,0.239761,-1.000000,0.000000,-0.000001);
			f(5,6,2,1.000000,0.089910,0.760239,0.329671,0.670329,0.239761,-1.000000,0.000000,0.000000);
			f(0,4,1,0.339072,0.000000,0.339347,0.089910,0.000000,0.001040,0.000000,-1.000000,-0.000000);
			f(4,5,1,0.339347,0.089910,0.000276,0.090950,0.000000,0.001040,-0.000000,-1.000000,0.000001);
			f(3,0,2,0.340112,0.857094,0.001040,0.858134,0.339072,0.518022,0.000000,0.000000,-1.000000);
			f(2,0,1,0.339072,0.518022,0.001040,0.858134,0.000000,0.519063,0.000000,0.000000,-1.000000);
			f(11,8,10,0.340497,0.464535,0.340657,0.516982,0.001425,0.465575,-0.000000,0.000000,1.000000);
			f(8,9,10,0.340657,0.516982,0.001586,0.518022,0.001425,0.465575,-0.000000,0.000000,1.000000);
			f(5,4,11,0.000276,0.090950,0.339347,0.089910,0.340497,0.464535,-0.000000,-0.707107,0.707107);
			f(5,11,10,0.000276,0.090950,0.340497,0.464535,0.001425,0.465575,-0.000000,-0.707107,0.707107);
			f(6,5,10,0.760239,0.329671,1.000000,0.089910,1.000000,0.464537,-1.000000,0.000000,-0.000000);
			f(6,10,9,0.760239,0.329671,1.000000,0.464537,0.947552,0.516985,-1.000000,0.000002,0.000000);
			f(7,6,9,0.680119,0.782925,0.341048,0.781884,0.341860,0.516985,0.000000,1.000000,0.000000);
			f(7,9,8,0.680119,0.782925,0.341860,0.516985,0.680932,0.518025,0.000000,1.000000,0.000000);
			f(4,7,11,0.670329,0.427074,0.430568,0.187313,0.670329,0.052448,1.000000,-0.000000,0.000000);
			f(7, 8, 11, 0.430568, 0.187313, 0.617881, 0.000000, 0.670329, 0.052448, 1.000000, -0.000001, 0.000000);
			
			this.x = 0.000000;
			this.y = 0.000000;
			this.z = 0.000000;

			this.rotationX = 0.000000;
			this.rotationY = 0.000000;
			this.rotationZ = 0.000000;

			this.scaleX = 1.000000;

			this.scaleY = 1.000000;

			this.scaleZ = 1.000000;
		}
		public function v(x:Number, y:Number, z:Number):void {
			ve.push(new Vertex(x, y, z));
		}

		public function f(vertexIndex1:int, vertexIndex2:int, vertexIndex3:int, uv00:Number, uv01:Number, uv10:Number, uv11:Number, uv20:Number, uv21:Number, normalx:Number, normaly:Number, normalz:Number):void {
			var face:Face = new Face( ve[vertexIndex1], ve[vertexIndex2], ve[vertexIndex3], null, new UV(uv00, uv01), new UV(uv10, uv11), new UV(uv20, uv21) );
			addFace(face);
		}

		public function f2(vertexIndex1:int, vertexIndex2:int, vertexIndex3:int):void {
			addFace( new Face(ve[vertexIndex1], ve[vertexIndex2], ve[vertexIndex3]) );
		}

	}
}